package com.kaching.twitter

import twitter4j._

/**
 * Unification of Twitter DM and Status 
 */
abstract sealed class TwitterMessage (val id: Long, val sender: User, val text: String)
case class TwitterDirectMessage(dm: DirectMessage) extends TwitterMessage(dm.getId, dm.getSender, dm.getText)
case class TwitterStatusMessage(stat: Status) extends TwitterMessage(stat.getId, stat.getUser, stat.getText)

